<!DOCTYPE html>
<title>Test document user gesture autoplay policy across navigation after keypress</title>
<body>
  <div id='target'>target</div>
</body>
<script>
  testRunner.waitUntilDone();
  internals.settings.setAutoplayPolicy('document-user-activation-required');
  internals.runtimeFlags.autoplayIgnoresWebAudioEnabled = false;
  document.querySelector('#target').focus();
  eventSender.keyDown('a');

  document.location.href = 'resources/test-autoplay.html';
</script>
